package com.xxxx;

import com.xxxx.dao.BookDao;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

/**
 * Created By ShaoXikai on 2022/7/20
 */
public class AppLazy {
    public static void main(String[] args) {
        Resource rs = new ClassPathResource("beans.xml");
        XmlBeanFactory xf = new XmlBeanFactory(rs);
        BookDao bookDao = xf.getBean("bookDao", BookDao.class);
        bookDao.m1();
    }
}
